<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
      <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<jsp:include page="HeaderServlet"></jsp:include>

<section class="pro-list">
    <aside class="pro-leftsidebar">
        <ul>
            
            <li>
               
                <ul id="pro-category">
                <c:forEach items="${typeList }" var="type">
                 <li><a href="ProductServlet?typeId=${type.id}">${type.name }</a></li>
                </c:forEach>
                   
                </ul>
            </li>
        </ul>
    </aside>

    <aside class="pro-rightsidebar">
        <header>

                    <p></p>
            <span>${typeName}</span>
        </header>
        <ul>
        <c:forEach items="${productList }" var="item">
         <li >
                <a href="productdetails.jsp">
                <div class="img-box">
                    <img src="${item.picUrl }">
                    <p>${item.name }</p>
                </div>
                </a>
            </li>
        </c:forEach>
           
        </ul>
        <div class="pro_list_more_pages">
            <ul>
                <li><a>上一页</a></li>
                <li class="pro-list-current"><a>1</a></li>
                <li><a>2</a></li>
                <li><a>3</a></li>
                <li><a>下一页</a></li>
            </ul>
        </div>
    </aside>


</section>


<jsp:include page="footerServlet"></jsp:include>

</body>
</html>